package mlz.e_method;

public class Student {
    public String name; //null
    public int age;
    public String gender;
    private int money = 1000;


    //私有的,无参无返回值
    private void show(){
        System.out.println("私有的show方法,无参无返回值");

    }
    //公开的.无参无返回值
    public void function1(){
        System.out.println("function1 无参无返回值");
    }

    //公开的.有参无返回值
    public void function2(String name){
        System.out.println("function2 有参无返回值");
    }

    //公开的.无参有返回值
    public String function3(){
        System.out.println("function3 无参有返回值");
        return "aaa";
    }

    //公开的 有参有返回值
    public String function4(String name){
        System.out.println("function4 有参有返回值");
        return "bbb";
    }





}
